;******************************************************************************
;* Project: MCU OS for Cap touch using Sitronix A8008 IC.
;* Author: Benson Shen (Jun. 20, 2013)
;* Copyright (C) 2013, Sitronix Tech. Corp.
;******************************************************************************

#ifndef	__CTI2C_FOCAL_DEF_H__
#define	__CTI2C_FOCAL_DEF_H__


#define		FT_I2C_CMD_START						0x100
#define		FT_DEVIDE_MODE							0x00
FT_EX_DEVIDE_MODE					EQU	EDATA		FT_DEVIDE_MODE+FT_I2C_CMD_START
	#define		FT_DEVIDE_MODE_DEVELOP				0x70
FT_EX_GEST_ID						EQU	EDATA		0x01+FT_I2C_CMD_START
FT_EX_TD_STATUS						EQU	EDATA		0x02+FT_I2C_CMD_START
	#define		FT_TD_STATUS_CMD				0x02
FT_EX_TOUCH1_XH						EQU	EDATA		0x03+FT_I2C_CMD_START
FT_EX_TOUCH1_XL						EQU	EDATA		0x04+FT_I2C_CMD_START
	#define		FT_TOUCH1_XL					LOW(FT_EX_TOUCH1_XL)
FT_EX_TOUCH1_YH						EQU	EDATA		0x05+FT_I2C_CMD_START
FT_EX_TOUCH1_YL						EQU	EDATA		0x06+FT_I2C_CMD_START
FT_EX_TOUCH1_RESERVED0				EQU	EDATA		0x07+FT_I2C_CMD_START
FT_EX_TOUCH1_RESERVED1				EQU	EDATA		0x08+FT_I2C_CMD_START

FT_EX_TOUCH2_XH						EQU	EDATA		0x09+FT_I2C_CMD_START
FT_EX_TOUCH2_XL						EQU	EDATA		0x0A+FT_I2C_CMD_START
FT_EX_TOUCH2_YH						EQU	EDATA		0x0B+FT_I2C_CMD_START
FT_EX_TOUCH2_YL						EQU	EDATA		0x0C+FT_I2C_CMD_START
FT_EX_TOUCH2_RESERVED0				EQU	EDATA		0x0D+FT_I2C_CMD_START
FT_EX_TOUCH2_RESERVED1				EQU	EDATA		0x0E+FT_I2C_CMD_START

FT_EX_TOUCH3_XH						EQU	EDATA		0x0F+FT_I2C_CMD_START
FT_EX_TOUCH3_XL						EQU	EDATA		0x10+FT_I2C_CMD_START
FT_EX_TOUCH3_YH						EQU	EDATA		0x11+FT_I2C_CMD_START
FT_EX_TOUCH3_YL						EQU	EDATA		0x12+FT_I2C_CMD_START
FT_EX_TOUCH3_RESERVED0				EQU	EDATA		0x13+FT_I2C_CMD_START
FT_EX_TOUCH3_RESERVED1				EQU	EDATA		0x14+FT_I2C_CMD_START

FT_EX_TOUCH4_XH						EQU	EDATA		0x15+FT_I2C_CMD_START
FT_EX_TOUCH4_XL						EQU	EDATA		0x16+FT_I2C_CMD_START
FT_EX_TOUCH4_YH						EQU	EDATA		0x17+FT_I2C_CMD_START
FT_EX_TOUCH4_YL						EQU	EDATA		0x18+FT_I2C_CMD_START
FT_EX_TOUCH4_RESERVED0				EQU	EDATA		0x19+FT_I2C_CMD_START
FT_EX_TOUCH4_RESERVED1				EQU	EDATA		0x1A+FT_I2C_CMD_START

FT_EX_TOUCH5_XH						EQU	EDATA		0x1B+FT_I2C_CMD_START
FT_EX_TOUCH5_XL						EQU	EDATA		0x1C+FT_I2C_CMD_START
FT_EX_TOUCH5_YH						EQU	EDATA		0x1D+FT_I2C_CMD_START
FT_EX_TOUCH5_YL						EQU	EDATA		0x1E+FT_I2C_CMD_START
FT_EX_TOUCH5_RESERVED0				EQU	EDATA		0x1F+FT_I2C_CMD_START
FT_EX_TOUCH5_RESERVED1				EQU	EDATA		0x20+FT_I2C_CMD_START

FT_EX_ID_G_CTRL						EQU	EDATA		0x86+FT_I2C_CMD_START
FT_EX_ID_G_TIME_ENTER_MONITOR		EQU	EDATA		0x87+FT_I2C_CMD_START
FT_EX_ID_G_PERIOD_ACTIVE			EQU	EDATA		0x88+FT_I2C_CMD_START
	#define		FT_ID_G_PERIOD_ACTIVE			0x08

FT_EX_ID_G_LIB_VERSION_H			EQU	EDATA		0xA1+FT_I2C_CMD_START
FT_EX_ID_G_LIB_VERSION_L			EQU	EDATA		0xA2+FT_I2C_CMD_START
FT_EX_ID_G_CHIP_VENDOR_ID			EQU	EDATA		0xA3+FT_I2C_CMD_START
FT_EX_ID_G_INT_MODE					EQU	EDATA		0xA4+FT_I2C_CMD_START
FT_EX_ID_G_PMODE					EQU	EDATA		0xA5+FT_I2C_CMD_START
FT_EX_ID_G_FIRMWARE_ID				EQU	EDATA		0xA6+FT_I2C_CMD_START
FT_EX_ID_G_STATE					EQU	EDATA		0xA7+FT_I2C_CMD_START
FT_EX_ID_G_CTPM_VENDOR_ID			EQU	EDATA		0xA8+FT_I2C_CMD_START
FT_EX_ID_G_ERR_CODE					EQU	EDATA		0xA9+FT_I2C_CMD_START

FT_EX_ID_G_RELEASE_CODE_ID			EQU	EDATA		0xAF+FT_I2C_CMD_START

FT_EX_BOOT_LOADER_SWITCH			EQU	EDATA		0xFC+FT_I2C_CMD_START
                                                                       

#endif	//__CTI2C_FOCAL_DEF_H__